package org.myspring.dis.events;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;

// close()关闭触发
// 一个已关闭的上下文到达生命周期末端；它不能被刷新或重启
public class ContextClosedEventHandler implements ApplicationListener<ContextClosedEvent> {

	@Override
	public void onApplicationEvent(ContextClosedEvent event) {
		System.out.println("ContextClosedEvent Received.");
	}

}
